package com.info.zhiduoduo.repository.entity.value;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 增值服务 实体类
 */

@Data
@Accessors(chain = true)
@TableName("zdd_value_serve")
public class ValueServe extends Model<ValueServe> {

    @TableId(value = "id" , type = IdType.AUTO)
    private int id;


    /**
     * 客户类型( 1 创客 2 企业 )
     */
    @TableField("customer_type")
    private Integer customerType;


    /**
     * 客户id
     */
    @TableField("customer_id")
    private Integer customerId;


    /**
     * 客户名称
     */
    private String name;


    /**
     * 服务类型
     */
    private Integer type;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态（0 待审批 1 已审批 2 已解决 3 已驳回 ）
     */
    private Integer state;

    /**
     * 驳回理由
     */
    @TableField("rejection_reason")
    private String rejectionReason;

    /**
     * 修改时间
     */
    private Date updatetime;
    /**
     * 创建时间
     */
    private Date createtime;

    @ApiModelProperty("快递/扫描回传邮箱")
    @TableField("back_email")
    private String backEmail;

    @ApiModelProperty("快递单号")
    @TableField("tracking_num")
    private String trackingNum;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("邮寄人（客服id）")
    private Integer sender;

    @ApiModelProperty("盖章人（客服id）")
    @TableField("sealed_by")
    private Integer sealedBy;

    @ApiModelProperty("客服备注")
    private String notes;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
